Repository navigation
feat(ide): VS Code extensions from Open VSX: Extensions view, themes, languages, grammars, snippets - #281
Merged
Conversation
…uages, grammars and snippets (#252, #254, #255, #257, #258) - ADR 0002: own extension host + Open VSX, never the Visual Studio Marketplace - Open VSX client (search, details, platform builds, SHA-256 check) and .vsix install with a hardened unzip - Extension store in the user-data folder: install, update, enable, disable, uninstall, disable all, --disable-extensions - Extensions view (Ctrl/Cmd+Shift+X) with registry search, installed list and a details page with the README - Colour themes of extensions in the theme picker, applied to Monaco and the workbench tokens - Languages, language configuration, TextMate grammars (vscode-textmate + oniguruma WASM) and snippets - CSP gains 'wasm-unsafe-eval' only; Extensions channel in the Output panel
…keii8k # Conflicts: # apps/ide/src/main/ipc.ts # apps/ide/src/preload/index.ts # apps/ide/src/renderer/main.ts # apps/ide/src/renderer/workbench.ts # apps/ide/src/shared/api.ts # apps/ide/src/shared/output.ts # apps/ide/test/output.test.ts
…keii8k # Conflicts: # apps/ide/THIRD_PARTY_NOTICES.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adrián · project thread
First part of epic #251 (VS Code extensions in the Code-XR IDE).
What changes
adr/0002-vscode-extensions-in-the-ide.md, X1: Decide how the IDE runs VS Code extensions (ADR 0002) #252): own extension host scoped to what people use (Theia-style), Open VSX as the registry (the Microsoft Marketplace terms forbid other products), licensing and security notes. Design and current state indocs/ide/extensions.md..vsixreader with zip-slip, symlink and size checks, a store under<userData>/extensions/, native confirmation before every install or uninstall, enable / disable / disable all,--disable-extensions.Ctrl/Cmd+Shift+X, installed list, registry results, details page with README, facts and contributions. No network until the person searches.includechains and.tmTheme; the theme picker previews them and they colour Monaco and the workbench tokens.vscode-textmate+vscode-oniguruma(CSP gains only'wasm-unsafe-eval';evalstays blocked, checked by the smoke run),language-configuration.json, injections and embedded languages, snippet completions.ide(debugger IDE: debugger over DAP for Python and Node.js (#180) #245, CI ci: run the checks on pull requests to the ide branch #250, PDF viewer IDE: PDF and image viewer tabs, on a generic custom-editor tab seam #256); all conflicts were additive.Extensions with code (the extension host) come next in #259.
Tests
npm run test --workspace=code-xr-ide: typecheck, lint, 700 tests pass (newextensions.test.ts,extensionsRenderer.test.ts).npm run smoke: OK, no CSP violation, eval blocked..vsixbuilt from VS Code's built-in Monokai, Solarized Light, ini and swift extensions; the theme coloured editor and workbench,.inifiles were detected and highlighted.